python memory representations